import request from '@/utils/request'

// 查询直播活动列表
export function listOnlineLiveEvents(query) {
  return request({
    url: '/education/OnlineLiveEvents/list',
    method: 'get',
    params: query
  })
}

// 查询直播活动详细
export function getOnlineLiveEvents(liveEventId) {
  return request({
    url: '/education/OnlineLiveEvents/' + liveEventId,
    method: 'get'
  })
}

// 新增直播活动
export function addOnlineLiveEvents(data) {
  return request({
    url: '/education/OnlineLiveEvents',
    method: 'post',
    data: data
  })
}

// 修改直播活动
export function updateOnlineLiveEvents(data) {
  return request({
    url: '/education/OnlineLiveEvents',
    method: 'put',
    data: data
  })
}

// 删除直播活动
export function delOnlineLiveEvents(liveEventId) {
  return request({
    url: '/education/OnlineLiveEvents/' + liveEventId,
    method: 'delete'
  })
}
